package me.j360.springboot.parent.web.anotherstart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

/**
 * Created with springbootweb -> me.j360.springboot.parent.web.anotherstart.
 * User: min_xu
 * Date: 2015/7/28
 * Time: 14:46
 * 说明：<packaging>war</packaging>启动一个war类型的应用SpringWeb应用程序
 */

@SpringBootApplication
public class WarServletApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(WarServletApplication.class);
    }
    public static void main(String[] args) throws Exception {
        SpringApplication.run(WarServletApplication.class, args);
    }
}
